<header>
	<h1><?= $configuration['sitename'] ?></h1>
	<navbar>
		<ul>
			<li><a href="<?= $url_routes['home'] ?>">Inicio</a></li>
			<?php if (empty($user)): ?>
				<li><a href="<?= $url_routes['signup'] ?>">Registrarse</a></li>
				<li><a href="<?= $url_routes['login'] ?>">Iniciar sesión</a></li>
			<?php else: ?>
				<li><a href="<?= $url_routes['logout'] ?>">Cerrar sesión</a></li>
			<?php endif ?>
		</ul>
	</navbar>
	<form method="POST" action="<?= $url_routes['home'] ?>">
		<input type="hidden" name="csrf" value="<?= $token ?>">
		<span>
			<input type="text" name="q" minlength="1" maxlength="244" required>
		</span>
		<span>
			<input type="submit" name="search_submit" value="&#x1F50E">
		</span>
	</form>
</header>